﻿/// <summary>
/// Developer: CHOOI KAH WAI
/// Last Modified: 26/10/2009
/// </summary>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Xml.Linq;

namespace ARSS.Common
{
    /// <summary>
    /// Animation node data class
    /// </summary>
    class AnimationNode
    {
        #region Properties

        public string Target { get; set; }
        public double X { get; set; }
        public double Y { get; set; }
        public double Z { get; set; }

        #endregion

        #region Functions

        /// <summary>
        /// Load animation node
        /// </summary>
        /// <param name="ele">XML element containing animation data</param>
        public void LoadNode(XElement ele)
        {
            Target = ele.Attribute("target").Value;
            X = double.Parse(ele.Attribute("x").Value);
            Y = double.Parse(ele.Attribute("y").Value);
            Z = double.Parse(ele.Attribute("z").Value);
        }

        #endregion
    }
}
